<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@page language="java" pageEncoding="utf-8" import="java.util.*"
        contentType="text/html;charset=utf-8" isELIgnored="false" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<html>
<head>
    <title>update Emp</title>
    <!-- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
            <link rel="stylesheet" type="text/css" href="css/style.css" /> -->

    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <link rel="stylesheet" type="text/css"
          href="/cc/css/style.css"/>

    <%
        Date d = new Date();
        pageContext.setAttribute("d", d);
    %>
</head>

<body>
<div id="wrap">
    <div id="top_content">
        <div id="header">
            <div id="rightheader">
                <p>
                    <!-- 	2009/11/20 -->
                    <fmt:formatDate value="${pageScope.d }"
                                    pattern="yyyy-MM-dd HH:mm:ss"/>
                    <br/>
                </p>
            </div>
            <div id="topheader">
                <h1 id="title">
                    <a href="#">Main</a>
                </h1>
            </div>
            <div id="navigation"></div>
        </div>
        <div id="content">
            <p id="whereami"></p>
            <h1>update Emp info:</h1>

            <form action="update.do" method="post">
                <table cellpadding="0" cellspacing="0" border="0"
                       class="form_table">
                    <tr>

                        <!-- <td valign="middle" align="right">
                                id:
                            </td>
                            <td valign="middle" align="left">
                                1
                            </td> -->

                        <input type="hidden" name="id"
                               value="${requestScope.mapOne.id}"/>
                    </tr>
                    <tr>
                        <td valign="middle" align="right">姓名:</td>
                        <td valign="middle" align="left"><input type="text"
                                                                class="inputgri" name="name"
                                                                value='${requestScope.mapOne.name}'/></td>
                    </tr>
                    <tr>
                        <td valign="middle" align="right">年龄:</td>
                        <td valign="middle" align="left"><input type="text"
                                                                class="inputgri" name="age"
                                                                value="${requestScope.mapOne.age}"/></td>

                        <%-- <input type="text" class="inputgri" name="book.price"
                                value="<s:property value="book.price"/>"/> --%>
                    </tr>
                    <%--单选框--%>
                    <tr>
                        <td valign="middle" align="right">性别:</td>
                        <td valign="middle" align="left">
                            <%-- radio 单选框  name 接收的实体类参数 value 值 checked 默认选中 --%>
                            <c:if test="${requestScope.mapOne.gender==1}">
                                <input type="radio" class="inputgri" name="gender" value="1" checked="checked"/>男
                                <input type="radio" class="inputgri" name="gender" value="0"/>女
                            </c:if>

                            <c:if test="${requestScope.mapOne.gender==0}">
                                <input type="radio" class="inputgri" name="gender" value="1"/>男
                                <input type="radio" class="inputgri" name="gender" value="0" checked="checked"/>女
                            </c:if>
                        </td>
                    </tr>

                </table>
                <p>
                    <input type="submit" class="button" value="Confirm"/>
                </p>
            </form>
        </div>
    </div>
    <div id="footer">
        <div id="footer_bg">ABC@126.com</div>
    </div>
</div>
</body>
</html>
